<link rel="stylesheet" type="text/css" href="|£|$url|\£|/wp-content/plugins/video-wizard/libs/Smarty/templates/css/palinsesto_frontend.css"/>
<link rel="stylesheet" type="text/css" href="|£|$url|\£|/wp-content/plugins/video-wizard/libs/jqueryUI/js/jquery.ui.stars.min.css"/>
<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/libs/jquery/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/libs/jqueryUI/js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/libs/jqueryUI/js/jquery.raty.js"></script>

<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/libs/jwplayer/jwplayer.js"></script>
<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/js/palinsesto_frontend.js"></script>
<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/js/contests.js"></script>

<div id="video|£|$data[0].id|\£|">
    
    <div id="actualVideo" class="floatl" >
        
        |£|if $inContest == "true"|\£|
            |£|$inContest|\£|
            <div class="stars-wrapper|£|$data[0].id|\£|"></div>
            <script type='text/javascript'>
                
                $(document).ready(function(){$(".stars-wrapper"+'|£|$data[0].id|\£|').raty({
                    path: location.href.substring(0,location.href.lastIndexOf('/')+1)+"wp-content/plugins/video-wizard/libs/jqueryUI/img/",
                    starHalf:   'star-half-big.png',
                    starOff:    'star-off-big.png',
                    starOn:     'star-on-big.png',
                    width:  250,
                    half: true,
                    |£|if $notYetRated == "true"|\£|
                        click: function(score,evt){
                            sendScore(score,"|£|$data[0].id|\£|");
                            $.fn.raty.readOnly(true,".stars-wrapper"+'|£|$data[0].id|\£|');
                        },
                    |£|else|\£|
                        readOnly: true,
                    |£|/if|\£|
                    start: |£|$ratingStart|\£|
                    
                });});
            </script>
        |£|/if|\£|
        <div id="player|£|$data[0].id|\£|" align="center">
            <script type='text/javascript'>
             var width2 = getMaxWidth("video|£|$data[0].id|\£|");
             var height2 = getMaxHeight(width2,"16:9");
             jwplayer('player|£|$data[0].id|\£|').setup({
                    file: '|£|$data[0].file_position|\£|',
                  controlbar: "bottom",
                  width: width2,
                  height: height2,
                  image: '|£|$data[0].thumb|\£|',
                  provider: "http",
                  "http.startparam":"start",
                  |£|if $autostart eq "1"|\£|
                    autostart: true,
                  |£|else|\£|
                    autostart:false,
                  |£|/if|\£|                  
                  modes: [
                       {type: "flash", 
                        src: "wp-content/plugins/video-wizard/libs/jwplayer/player.swf"
                        },
                       {type: "html5"
                        },
                       {type:"download"}
                          ]
                    });
            </script>

        </div>
            
        <div id="vidwiz-infovideo">
            <div id="vidwiz-infovideo-selbar">
                <table><tr><td onclick="showBox('1');">Descrizione</td><td onclick="showBox('2');">Condividi</td></tr></table>
            </div>
            <div id="vidwiz-box1" name="vidwiz-box" selected="selected">
                <strong>Descrizione</strong>
                <div id="vidwiz-description">|£|$data[0].description|\£|</div>
            </div>
            <div style="display:none;" name="vidwiz-box" id="vidwiz-box2">
                dasndkjlasnldasnld dklsaknd nasl dnaskldn askldnklasn dklasndaskl
            </div>
        </div>
</div>
</div>